package HomeWork.Question4;

import java.net.SocketException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int your_port;       //默认端口
        int send_port;
        System.out.println("Java聊天软件欢迎你！");
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入你的微信号登录：");
        your_port = sc.nextInt();
        System.out.print("请输入你要发送信息的微信号：");
        send_port = sc.nextInt();
        System.out.println("Java聊天系统启动！");
        try {
            new Chat_Thread(your_port,send_port).start_chat();
        } catch (SocketException e) {
            throw new RuntimeException(e);
        }
    }
}
